/* generated using openapi-typescript-codegen -- do no edit */
/* istanbul ignore file */
/* tslint:disable */
/* eslint-disable */
import type { BaseResponse_List_string_ } from '../models/BaseResponse_List_string_';
import type { BaseResponse_SearchVO_ } from '../models/BaseResponse_SearchVO_';
import type { SearchQueryRequest } from '../models/SearchQueryRequest';

import type { CancelablePromise } from '../core/CancelablePromise';
import { OpenAPI } from '../core/OpenAPI';
import { request as __request } from '../core/request';

export class SearchControllerService {

    /**
     * searchAll
     * @param searchQueryRequest searchQueryRequest
     * @returns BaseResponse_SearchVO_ OK
     * @returns any Created
     * @throws ApiError
     */
    public static searchAllUsingPost(
searchQueryRequest: SearchQueryRequest,
): CancelablePromise<BaseResponse_SearchVO_ | any> {
        return __request(OpenAPI, {
            method: 'POST',
            url: '/api/search/all',
            body: searchQueryRequest,
            errors: {
                401: `Unauthorized`,
                403: `Forbidden`,
                404: `Not Found`,
            },
        });
    }

    /**
     * searchSuggest
     * @param suggestText suggestText
     * @returns BaseResponse_List_string_ OK
     * @throws ApiError
     */
    public static searchSuggestUsingGet(
suggestText?: string,
): CancelablePromise<BaseResponse_List_string_> {
        return __request(OpenAPI, {
            method: 'GET',
            url: '/api/search/suggest',
            query: {
                'suggestText': suggestText,
            },
            errors: {
                401: `Unauthorized`,
                403: `Forbidden`,
                404: `Not Found`,
            },
        });
    }

}
